export const Get = <T,>(
    url: string,
    params: IAnyObj = {},
    clearFn?: Fn
  ): Promise<[any, FcResponse<T> | undefined]> =>
    new Promise((resolve) => {
      axios
        .get(url, { params })
        .then((result) => {
          let res: FcResponse<T>;
          if (clearFn !== undefined) {
            res = clearFn(result.data) as unknown as FcResponse<T>;
          } else {
            res = result.data as FcResponse<T>;
          }
          console.log(res,99)
          resolve([null, res as FcResponse<T>]);
        })
        .catch((err) => {
          resolve([err, undefined]);
        });
    });